import {mapState, mapMutations} from 'vuex'

export default {
	data() {
		return {
			
		}
	},
	onLoad(option) {
		
	},
	computed: {
		...mapState(['hasLogin', 'userInfo', 'globalConfig', 'orderCountTime', 'reloadIndex'])
	},
	methods: {
		...mapMutations(['login', 'logout', 'setOrderCountTime', 'updateUserInfo', 'setGlobalConfig', 'setReloadIndex']),
		getRoute(){
			let pages = getCurrentPages();
			let curPage = pages[pages.length-1];
			return curPage.route;
		},
	}
}